<?php
/*
+-----------------------------------------------------------------------------+
| $Id: *.php 2009-08-18 08:41:22Z Bleakwind $
| Copyright (c) 2003-2010 Bleakwind (www.weaverdream.com)
| http://www.weaverdream.com/
+-----------------------------------------------------------------------------+
*/

if (!defined( 'ENTRY_INDEX')){
    echo "<h1>Forbidden</h1><p>You don't have permission to access on this server.</p>";
    exit;
}

//return_channel_all
$sys->return_channel_all();
$t->assign(array(
    "channel_all"       => $sys->channel_all,
    "channel_upper"     => $sys->channel_upper,
));
//////

// channel_top
$sys->channel_sub = array();
$sys->return_channel_sub("0");
$t->assign(array(
    "channel_top"       => $sys->channel_sub,
));
//////

// channel_tree
$sys->channel_tree = array();
$sys->return_channel_tree();
$t->assign(array(
    "channel_tree"     => $sys->channel_tree,
));
//////

// // channel_tree
// if( preg_match("/^[0-9]+$/",$sys->get['channel_id']) && (int)$sys->get['channel_id'] > 0){
//     $path_current_top = explode(",", $sys->channel_tree[(int)$sys->get['channel_id']]['path']);
//     $sys->channel_tree = array();
//     $channel_tree_current = $sys->return_channel_tree("", (int)$path_current_top[0]);
//     $t->assign(array(
//         "channel_tree_current" => $channel_tree_current,
//     ));
// }
// //////
?>
